exports.add = (req,res) => {

    var bodyParams = req.routeInfo.bodyParams;

    //新增文档
    var sql = `insert into docs values(NULL,
        '${bodyParams.d_name}',
        '${bodyParams.d_api}',
        '${bodyParams.d_method}',
        '${bodyParams.d_desc == undefined ? '' : bodyParams.d_desc}',
        '${bodyParams.d_note == undefined ? '' : bodyParams.d_note}',
        '${bodyParams.d_result}',
        '${bodyParams.d_dcid}')`;

    console.log(sql);

    sqliteDb.run(sql,function(error,data){

        if(error){
            console.log(error);
            return RES.errorResponse(res,"抱歉，文档新增失败");
        }

        return RES.successResponse(res);

    });

 }